import BaseDao from './baseDao'
import * as Models from '../model/index'

class _Dao extends BaseDao {
    constructor() {
        super()
        this.model = Models.productOption
    }

    async findOneByNameAndPassword({name, password}) {
        return this.model.findOne({
            where:{
                name,password
            }}
        )
    }


}


export default (() => new _Dao())()
